package com.liang.subject.infra.basic.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.liang.subject.infra.basic.entity.SubjectCategory;
import com.liang.subject.infra.basic.entity.SubjectLabel;
import com.liang.subject.infra.basic.service.SubjectLabelService;
import com.liang.subject.infra.basic.mapper.SubjectLabelMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

/**
* @author 29018
* @description 针对表【subject_label(题目标签表)】的数据库操作Service实现
* @createDate 2024-10-08 22:53:19
*/
@Service
public class SubjectLabelServiceImpl extends ServiceImpl<SubjectLabelMapper, SubjectLabel> implements SubjectLabelService{

    @Override
    public List<SubjectLabel> queryByCategoryType(Integer categoryType) {
        List<SubjectLabel> labelList = lambdaQuery().eq(SubjectLabel::getCategoryId, categoryType).list();
        return labelList;
    }
}




